Ext.namespace("Nippy.Components.NodeEditors.Shortcut");

Nippy.Components.NodeEditors.MenuSeparator = Ext.extend(Nippy.Components.NodeEditors.BasicEditor, {
    initComponent: function(){
		Ext.apply(this, {
		    labelWidth: 135,
		    frame:true,
		    title: 'Разделитель ('.concat(this.nodeId,')'),
		    bodyStyle:'padding:5px 5px 0',
		    width: 550,
		    defaultType: 'textfield',
            addOther: true,
		    items: []
		});
		Nippy.Components.NodeEditors.MenuSeparator.superclass.initComponent.apply(this, arguments);
	}
	,saveClick: function(){
		var f = this.getForm();
		this.getForm().submit({
			url: '/admin/cfg-menu-separator/',
			method: 'PUT',
			scope: this,
			params: {id: this.nodeId},
			failure: this.submitFailure,
			success: function(form, action){
				this.fireEvent('onsaved', this);
			}
		});
	}
});